package com.example.demo.service;

import com.example.demo.model.Dishes;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface DishesService {
    List<Dishes> getAllDishes();

    Dishes getDishesById(Long id);

    Dishes addDishes(Dishes dishes);

    // 可以调用 AI 模型进行食品识别和分类
    public Dishes recognizeFood(String imageBase64);

    void incrementDishViewCount(Long dishId);

    public Map<String, List<Dishes>> classifyDishesByIngredient();

    public List<Dishes> getDishesByIngredientName(String ingredientName);

    public List<Dishes> RecommandForUserInfo(String description);
}
